package cn.qingyun.gis.modules.scenes.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author LHJ
 * @description
 * @date 2024/10/9 17:55
 */
@Data
public class UniAddrRegion {
    private String id;

    private String code;

    private String parentCode;

    private String name;

    private String parentName;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    //层级
    private Integer level;

    private String wkt;

    //0 不变更 1 变更 2 新增 3 删除 -1 无效
    private Integer state;

    //中心点
    private String centerPoint;

    //中心点经度
    @TableField(exist = false)
    private BigDecimal lon;

    //中心点纬度
    @TableField(exist = false)
    private BigDecimal lat;
}
